<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="../../pub/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>网站设置</title>
<%@include file="../../pub/resource.jsp"%>
<script type="text/javascript"
	src="${pageContext.request.contextPath }/js/bootstrap-switch.min.js"></script>
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath }/css/bootstrap-switch.min.css">
</head>
<body>
	<div class="definewidth m20 form-horizontal">
		<div class="control-group">
			<label class="control-label" for="vCode" >全局验证码开关：</label>
			<div class="controls switch">
				<input type="checkbox" id="vCode" <c:if test="${kaptcha }">checked</c:if> />
			</div>
		</div>
	</div>
</body>
<script type="text/javascript">
$(function(){
	$("#vCode").bootstrapSwitch({
		onSwitchChange:function(event, state){
			$.ajax({
				url:rootPath+"/admin/common/changeCatcha.do",
				type:"post",
				data:{
					state:state
				},
				dataType:"text",
				success:function(data){
				}
			});
		}
	});
})
</script>
</html>